import request from '@/utils/request.js'

export const login = (phone, password) => {
  return request.post('user/login', {
    phone,
    password
  })
}

export const register = (phone, username, password) => {
  return request.post('user/register', {
    phone,
    username,
    password
  })
}
